﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon.TradingEnums;
using BCDto.Utils;

namespace BCDto.Trading.Purchase.GoodsPurchasePaidRecord
{
    /// <summary>
    /// 商品采购支付记录
    /// </summary>
    public class GoodsPurchasePaidRecordRequestDto
    {
        /// <summary>
        /// 商品采购单Id
        /// </summary>		
        [Display(Name = "商品采购单Id")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long GoodsPurchaseId { get; set; }
        /// <summary>
        /// 商品采购清单Id
        /// </summary>		
        [Display(Name = "商品采购清单Id")]
        public long? GoodsPurchaseChecklistId { get; set; }
        /// <summary>
        /// 支付商品库存数量
        /// </summary>		
        [Display(Name = "支付商品库存数量")]
        public int? PaidGoodsInventoryCount { get; set; }
        /// <summary>
        /// 支付金额
        /// </summary>		
        [Display(Name = "支付金额")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public decimal PaidAmount { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>		
        [Display(Name = "支付类型")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public PurchasePaidType PaidType { get; set; }
        /// <summary>
        /// 支付日期
        /// </summary>		
        [Display(Name = "支付日期")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public DateTime PaidDate { get; set; }
        /// <summary>
        /// 支付票据
        /// </summary>
        [Display(Name = "支付票据")]
        [Required(ErrorMessage = "{0} 不允许为空")]
        [Image]
        public string PaidCredential { get; set; }
    }
}

